Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My Xen DomU Windows Configuration File passes two USB 2.0 Controllers and my ATI Graphics card for Secondary VGA Passthrough:
- cdelorme@xen:~/hvm$ cat windows
- name='windows'
- builder='hvm'
- vcpus=4
- memory=6144
- disk=[
- '/dev/xen/windows,,hda,w',
- '/dev/nas/software,,sda,w',
- '/dev/nas/media,,sdb,w',
- '/dev/nas/special,,sdc,w',
- '/dev/nas/dumpbox,,sdd,w',
- '/dev/nas/family,,sde,w'
- ]
- vif=['bridge=xenbr0,model=e1000,mac=5a:50:a3:14:b1:1c']
- pci=['01:00.0','01:00.1','00:1a.0','00:1d.0']
- boot='c'
- pae=1
- nx=1
- nestedhvm=1
- viridian=1
- videoram=16
- stdvga=1
- vnc=1
- vnclisten='0.0.0.0:10'
- vncpasswd=''
- usb=1
- usbdevice='tablet'
- I am using Debian Wheezy for my DomU, and I use a DomU PFSense for my network, with Dom0 and my other machines inside the network. My interfaces file has two bridges:
- cdelorme@xen:~/hvm$ cat /etc/network/interfaces
- auto lo xenbr0 xenbr1
- iface lo inet loopback
- iface eth0 inet manual
- iface eth1 inet manual
- iface xenbr0 inet static
- bridge_ports eth1
- address 10.0.0.2
- netmask 255.255.255.224
- gateway 10.0.0.1
- dns-nameservers 10.0.0.1
- iface xenbr1 inet manual
- bridge_ports eth0
- I compiled a custom Linux Kernel to embed Xen-PCIBack among various other modules. This way I can pass devices from the Grub configuration, it was easier than it sounds. Here is my GRUB entry (/boot/grub/grub.cfg) for Xen:
- menuentry 'Debian GNU/Linux, with Xen 4.2-unstable and Linux 3.3.3' --class debian --class gnu-linux --class gnu --class os --class xen {
- insmod part_gpt
- insmod ext2
- set root='(hd0,gpt2)'
- search --no-floppy --fs-uuid --set=root 1229b41c-108e-4e26-a78b-3a958e9acc2b
- echo 'Loading Xen 4.2-unstable ...'
- multiboot /xen-4.2-unstable.gz placeholder
- echo 'Loading Linux 3.3.3 ...'
- module /vmlinuz-3.3.3 placeholder root=/dev/mapper/xen-linux ro quiet xen-pciback.hide=(01:00.0)(01:00.1)(00:1a.0)(00:1d.0)
- echo 'Loading initial ramdisk ...'
- module /initrd.img-3.3.3
- }
- menuentry 'Debian GNU/Linux, with Xen 4.2-unstable and Linux 3.3.3 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
- insmod part_gpt
- insmod ext2
- set root='(hd0,gpt2)'
- search --no-floppy --fs-uuid --set=root 1229b41c-108e-4e26-a78b-3a958e9acc2b
- echo 'Loading Xen 4.2-unstable ...'
- multiboot /xen-4.2-unstable.gz placeholder
- echo 'Loading Linux 3.3.3 ...'
- module /vmlinuz-3.3.3 placeholder root=/dev/mapper/xen-linux ro single
- echo 'Loading initial ramdisk ...'
- module /initrd.img-3.3.3
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement