Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created April 28, 2009 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnantoni/103337 to your computer and use it in GitHub Desktop.
Save johnantoni/103337 to your computer and use it in GitHub Desktop.
start
xm create /etc/xen/xen01.mybox.com.cfg
start on boot
ln -s /etc/xen/xen03.mybox.com.cfg /etc/xen/auto --force
list running xen machines (dom0 is host)
xm list
list all virtual images created by xen-create-image
xen-list-images
shutdown
xm shutdown xen01.mybox.com
shutdown immediately (as if you pulled the plug out)
xm destroy xen01.mybox.com
login
xm console xen01.mybox.com
to log in on that virtual machine (type CTRL+] if you are at the console,
or CTRL+5 if you're using PuTTY to go back to dom0),
or use an SSH client to connect to it (192.168.0.101).
ctrl+] to get back to host
show kernel
file /bin/ls
help
xm help
xen-create-image --hostname=xen01.mybox.com --size=10Gb --noswap --ip=192.168.1.2 --memory=256Mb --arch=i386 --role=udev
(debian lenny, 10gb hdd, no swap, 256mb ram, 32-bit kernel)
xen-create-image --hostname=xen01.mybox.com --size=10Gb --swap=256Mb --ip=192.168.1.2 --memory=256Mb --arch=amd64 --role=udev
(debian lenny, 10gb hdd, 128mb swap, 256mb ram, 64-bit kernel)
xen-create-image --hostname=xen01.mybox.com --size=10Gb --noswap --ip=192.168.1.2 --memory=256Mb --arch=i386 --dist fedora-core-8 --install-method rinse --role=udev
(fedora core 8, 10gb hdd, no swap, 256mb ram, 32-bit kernel)
xm create /etc/xen/xen01.mybox.com.cfg
xm create /etc/xen/xen02.mybox.com.cfg
ln -s /etc/xen/xen01.mybox.com.cfg /etc/xen/auto --force
ln -s /etc/xen/xen02.mybox.com.cfg /etc/xen/auto --force
xen-create-image --hostname=xen03.mybox.com --size=10Gb --swap=256Mb --ip=192.168.1.2 --memory=256Mb --arch=i386 --role=udev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment