Xen on Debian: Difference between revisions
Jump to navigation
Jump to search
| (2 intermediate revisions by the same user not shown) | |||
| Line 411: | Line 411: | ||
--dist=stretch \ | --dist=stretch \ | ||
--password=Passw0rd | --password=Passw0rd | ||
xen-create-image --hostname=tutorial-pv-guest \ | |||
--size=2Gb \ | |||
--swap=128Mb \ | |||
--memory=512mb \ | |||
--vcpus=1 \ | |||
--dir=/home/xen \ | |||
--image=sparse \ | |||
--dhcp \ | |||
--pygrub \ | |||
--dist=stretch \ | |||
--password=Passw0rd | |||
This command instructs xen-create-image (the primary binary of the xen-tools toolkit) to create a guest domain with 512MB of memory, 2 vcpus, using storage from the vg0 volume group we created, use DHCP for networking, pygrub to extract the kernel from the image when booted and lastly we specify that we want to deploy a Debian Wheezy operating system. | This command instructs xen-create-image (the primary binary of the xen-tools toolkit) to create a guest domain with 512MB of memory, 2 vcpus, using storage from the vg0 volume group we created, use DHCP for networking, pygrub to extract the kernel from the image when booted and lastly we specify that we want to deploy a Debian Wheezy operating system. | ||
| Line 467: | Line 480: | ||
lvcreate -nwindows -L20G vg0 | lvcreate -nwindows -L20G vg0 | ||
or for an image file | |||
dd if=/dev/zero of=/home/xen/xenwin10.img bs=1024k seek=30000 count=0 | |||
Next open a new file with your text editor of choice: | Next open a new file with your text editor of choice: | ||
| Line 474: | Line 491: | ||
Paste the config below into the file and save it, NOTE this assumes your Windows iso is located in /root/ with the filename windows.iso and that you're using Squeeze (for Wheezy change the kernel line to a xen-4.1 instead of xen-4.0 folder). In Debian Jessie, please use 'qemu-xen' rather than 'qemu-xen-traditional'. | Paste the config below into the file and save it, NOTE this assumes your Windows iso is located in /root/ with the filename windows.iso and that you're using Squeeze (for Wheezy change the kernel line to a xen-4.1 instead of xen-4.0 folder). In Debian Jessie, please use 'qemu-xen' rather than 'qemu-xen-traditional'. | ||
kernel = "/usr/lib/xen-4.8/boot/hvmloader" | #kernel = "/usr/lib/xen-4.8/boot/hvmloader" | ||
builder='hvm' | builder='hvm' | ||
memory = 4096 | memory = 4096 | ||