Xen on Debian: Difference between revisions

Jump to navigation Jump to search
 
(One intermediate revision 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: