Created
April 28, 2009 19:34
-
-
Save johnantoni/103337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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