User Tools

Site Tools


computer_setup:vm

Differences

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

Link to this comparison view

computer_setup:vm [2021/07/03 11:55] – created petercomputer_setup:vm [2021/07/03 12:01] (current) peter
Line 3: Line 3:
 <code bash> <code bash>
 virt-install --name debian8 --ram 1024 --disk path=./debian8.qcow2,size=8 --vcpus 1 --os-type linux --os-variant generic --network bridge=virbr0 --graphics none --console pty,target_type=serial --location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/' --extra-args 'console=ttyS0,115200n8 serial'  virt-install --name debian8 --ram 1024 --disk path=./debian8.qcow2,size=8 --vcpus 1 --os-type linux --os-variant generic --network bridge=virbr0 --graphics none --console pty,target_type=serial --location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/' --extra-args 'console=ttyS0,115200n8 serial' 
 +
 +virsh -c qemu:///system list
 +virsh --connect qemu:///system
 +
 +
 +kvm-img create -f qcow2 fake.qcow2 1G
 +kvm create -f qcow2 fake.qcow2 1G
 +kvm-img create -f qcow2 fake.qcow2 1G
 +virt-install create -f qcow2 fake.qcow2 1G
 +
 +kvm -drive file=windows.qcow2,if=ide,boot=on -drive file=fake.qcow2,if=virtio
 +
 +kvm -nographic -drive file=winxp.qcow2,if=ide,boot=on -drive file=fake.qcow2,if=virtio
 +
 +cd /srv/vmimage/
 +cd /etc/libvirt/qemu/
 +vi winxp.xml 
 +kvm -vnc :1 -drive file=winxp.qcow2,if=ide,boot=on -drive file=fake.qcow2,if=virtio
 +kvm -vnc :1 -drive file=/srv/vmimage/winxp.qcow2,if=ide,boot=on -drive file=/srv/vmimage/fake.qcow2,if=virtio
 +
 +kvm -vnc :1 -drive file=/srv/vmimage/fake.qcow2,index=0,media=disk,if=virtio -drive file=/srv/vmimage/winxp.iso,index=2,media=cdrom,if=ide -drive file=/srv/vmimage/virtio.iso,index=3,media=cdrom,if=ide
 +
 +kvm -vnc :1 -drive file=/srv/vmimage/fake.qcow2,index=0,media=disk,if=virtio -drive file=/srv/vmimage/winxp.iso,index=2,media=cdrom -drive file=/srv/vmimage/virtio.iso,index=3,media=cdrom
 +
 +kvm -vnc :1 -drive file=/srv/vmimage/winxp.qcow2,index=0,media=disk,if=ide -drive file=/srv/vmimage/winxp64.iso,index=2,media=cdrom -drive file=/srv/vmimage/virtio.iso,index=3,media=cdrom,if=virtio
 </code> </code>
  
computer_setup/vm.1625313323.txt.gz · Last modified: 2021/07/03 11:55 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki