User Tools

Site Tools


unix:virtualization:virtlib:importxen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
unix:virtualization:virtlib:importxen [2022/05/19 23:13]
rodolico
unix:virtualization:virtlib:importxen [2022/05/19 23:28] (current)
rodolico
Line 53: Line 53:
    ​--noautoconsole \    ​--noautoconsole \
    ​--os-variant debian9 \    ​--os-variant debian9 \
-   ​--metadata uuid=**CHANGEME**,​name=**CHANGEME**t,​title=**CHANGEME**,​description='​**CHANGEME**'​ \+   ​--metadata uuid=**CHANGEME**,​name=**CHANGEME**,​title=**CHANGEME**,​description='​**CHANGEME**'​ \
    ​--boot ​    ​hd,​cdrom,​menu=on \    ​--boot ​    ​hd,​cdrom,​menu=on \
    ​--network ​ bridge=**CHANGEME**,​mac=**CHANGEME**,​model=virtio \    ​--network ​ bridge=**CHANGEME**,​mac=**CHANGEME**,​model=virtio \
Line 60: Line 60:
 </​code>​ </​code>​
  
-The items marked **CHANGEME** in the above command are all populated from a Xen configuration file. **NOTE**: it is very important to place the boot drive first in the list, before any other drives or cdrom'​s+The items marked **CHANGEME** in the above command are all populated from a Xen configuration file. **NOTE**: it is very important to place the boot drive first in the list, before any other drives or cdrom'​s ​In the above example Xen config, I'd end up with something like: 
 + 
 +<code xml> 
 +<code bash> 
 + ​virt-install \ 
 +   ​--print-xml \ 
 +   --hvm \ 
 +   ​--connect ​   qemu:///​system \ 
 +   ​--name ​      ​server.example.com \ 
 +   ​--memory ​    4096 \ 
 +   ​--vcpus ​     4 \ 
 +   ​--disk ​      ​path=/​dev/​disk/​by-path/​ip-10.22.209.32:​3260-iscsi-iqn.2019-09.com.nas:​server.disk0-lun-0,​bus=virtio,​target=sda \ 
 +   ​--graphics vnc,​port=5904 \ 
 +   ​--noautoconsole \ 
 +   ​--os-variant debian9 \ 
 +   ​--metadata uuid=44f33f93-f606-4513-8dc0-7e1eac977025,​name=server.example.com,​title=server.example.com,​description='​Example Server'​ \ 
 +   ​--boot ​    ​hd,​cdrom,​menu=on \ 
 +   ​--network ​ bridge=br_dmz,​mac=00:​16:​3f:​97:​db:​f3,​model=virtio \ 
 +   > test.xml 
 +</​code>​ 
  
 Once you have this done, edit the resulting file with any changes you may need. I change the CPU as per [[unix:​virtualization:​virtlib:​migrate|]] so I can migrate easily. Once you have this done, edit the resulting file with any changes you may need. I change the CPU as per [[unix:​virtualization:​virtlib:​migrate|]] so I can migrate easily.
unix/virtualization/virtlib/importxen.txt · Last modified: 2022/05/19 23:28 by rodolico