Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine
New Posts  All Forums:Forum Nav:

{Guide} Create a Gaming Virtual Machine - Page 41

post #401 of 820
So, I gave the bootable Xen USB stick another try. It even started booting into Xen (as I could see from the console lines), but eventually rebooted somewhere in the middle. Oh well, I knew I had to edit the initrd but was lazy, after it threw me some errors. Lesson learned - don't try to edit the initrd with a different Linux release (I'm running LM13 but was preparing a LM14 ISO).

One thing I discovered by "accident" was that my passed-through USB host/ports aren't active when the Windows domU isn't running. I tried to charge my iPhone on a passed-through USB port - while Windows was shut off - and there was nothing. Does that mean there is no voltage output on that USB port (i.e. it's completely shut down), or does the iPhone expect to interact with the OS? I have no idea.
post #402 of 820
Thread Starter 
I did get a live-usb to work. I copied the centos 6.3 livecd to a usb stick using liveusb-creator and created an overlay. Then I just installed the proper packages for xen (including xen). The trick to getting it working was really just dumb luck. I had created the liveusb on a drive that contained a few files (about 150mb) and found that the files were still there after the distro was loaded. This was perfect, because I could delete those files and fill the free space with the kernel, xen.gz and initramfs -- this portion is not part of the persistent overlay. I had to add mboot.c32 and edit my syslinux.cfg. You use mboot.c32 as the kernel and append xen.gz, pvops kernel and initramfs.

I found documentation somewhere, but my tablet died and I can't find it now. I hope this points you in the right direction.
Edited by dizzy4 - 12/25/12 at 11:00pm
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
post #403 of 820
Quote:
Originally Posted by dizzy4 View Post

haha yeah, that's the thing. A script could handle this well I am sure. You can try:
Code:
sudo virsh nodedev-dettach pci_xxxx_xx_xx_x && sudo xm create win7a.sxp
the two ampersands separate the commands and will execute them both.

Thanks. I'll give this a shot.

edit: before I do, I assume I have to detach both the gpu and audio part of my video card? so the script will go something like:
Code:
sudo virsh nodedev-dettach pci_xxxx_xx_xx_1 && sudo virsh nodedev-dettach pci_xxxx_xx_xx_2 && sudo xm create win7a.sxp

Edited by caffeinescandal - 12/26/12 at 9:03pm
kaoru
(19 items)
 
kirino
(10 items)
 
 
CPUMotherboardGraphicsRAM
Zosma 960T SABERTOOTH 990FX Radeon HD 6850 SAMSUNG 
Hard DriveHard DriveHard DriveHard Drive
Seagate Barracuda 250GB Western Digital WD Green WD20EARX 2TB ST2000DM001 Western Digital Scorpio Black WD1600BEKT  
Optical DriveCoolingOSOS
LITE-ON 24X DVD Writer GentleTyphoon 2150 x3 Windows 8.1 Professional Windows 7 Professional 
MonitorPowerCaseOther
SyncMaster P2370HD CORSAIR CMPSU-550VX  Fractal Design R4 HighPointTech Raid Controller 4320 
CPUMotherboardGraphicsRAM
AMD A8-3850 Llano BIOSTAR A75MH AMD Radeon HD 6550D G.SKILL Ripjaws 
Hard DriveCoolingCoolingOS
Western Digital Black Scythe SCKBT-1000 Kabuto BitFenix Spectre Pro 120mm Fan - White LED Windows 7 Professional 
PowerCase
Corsair CMPSU-430CXV2 Dell Dimension 2300 Case 
  hide details  
Reply
kaoru
(19 items)
 
kirino
(10 items)
 
 
CPUMotherboardGraphicsRAM
Zosma 960T SABERTOOTH 990FX Radeon HD 6850 SAMSUNG 
Hard DriveHard DriveHard DriveHard Drive
Seagate Barracuda 250GB Western Digital WD Green WD20EARX 2TB ST2000DM001 Western Digital Scorpio Black WD1600BEKT  
Optical DriveCoolingOSOS
LITE-ON 24X DVD Writer GentleTyphoon 2150 x3 Windows 8.1 Professional Windows 7 Professional 
MonitorPowerCaseOther
SyncMaster P2370HD CORSAIR CMPSU-550VX  Fractal Design R4 HighPointTech Raid Controller 4320 
CPUMotherboardGraphicsRAM
AMD A8-3850 Llano BIOSTAR A75MH AMD Radeon HD 6550D G.SKILL Ripjaws 
Hard DriveCoolingCoolingOS
Western Digital Black Scythe SCKBT-1000 Kabuto BitFenix Spectre Pro 120mm Fan - White LED Windows 7 Professional 
PowerCase
Corsair CMPSU-430CXV2 Dell Dimension 2300 Case 
  hide details  
Reply
post #404 of 820
Has anyone tried this with Debian? I run Wheezy, and I'm considering trying this with a 5770 soon.
2017 Build
(10 items)
 
   
CPUMotherboardGraphicsRAM
Ryzen 7 1700X ASRock X370 Killer SLI/ac PowerColor R9 280 3GB 2x Corsair Venceance LPX 32GB DDR4-3200 (4x16GB) 
Hard DriveHard DriveCoolingMonitor
Sandisk Ultra II 960GB SSD Mushkin Reactor 960GB MLC SSD Corsair H110i 34" LG 34UC88-B 3440x1440 
PowerCase
EVGA SuperNOVA G2 750W Phanteks Enthoo Evolv ATX TG 
CPUCPUCPUCPU
AMD Opteron 8431 AMD Opteron 8431 AMD Opteron 8431 AMD Opteron 8431 
MotherboardRAMHard DriveOptical Drive
Supermicro H8QME-2+ 32GB DDR2-667 ECC Registered (16x2GB) 2x Samsung F3 1TB 2x Toshiba 5TB 
CoolingOSMonitorPower
4x Hyper TX-3 Debian Wheezy Headless Corsair CX750M 
  hide details  
Reply
2017 Build
(10 items)
 
   
CPUMotherboardGraphicsRAM
Ryzen 7 1700X ASRock X370 Killer SLI/ac PowerColor R9 280 3GB 2x Corsair Venceance LPX 32GB DDR4-3200 (4x16GB) 
Hard DriveHard DriveCoolingMonitor
Sandisk Ultra II 960GB SSD Mushkin Reactor 960GB MLC SSD Corsair H110i 34" LG 34UC88-B 3440x1440 
PowerCase
EVGA SuperNOVA G2 750W Phanteks Enthoo Evolv ATX TG 
CPUCPUCPUCPU
AMD Opteron 8431 AMD Opteron 8431 AMD Opteron 8431 AMD Opteron 8431 
MotherboardRAMHard DriveOptical Drive
Supermicro H8QME-2+ 32GB DDR2-667 ECC Registered (16x2GB) 2x Samsung F3 1TB 2x Toshiba 5TB 
CoolingOSMonitorPower
4x Hyper TX-3 Debian Wheezy Headless Corsair CX750M 
  hide details  
Reply
post #405 of 820
Thread Starter 
Quote:
Originally Posted by stolid View Post

Has anyone tried this with Debian? I run Wheezy, and I'm considering trying this with a 5770 soon.

Many people have gotten it working with Linux Mint (Debian/Ubuntu base). You should be able to get this working pretty easily -- you might want to look into development versions since Debian is pretty far behind on Xen releases.
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
Test Chamber ITX
(14 items)
 
Dream Rig (AMD)
(11 items)
 
Dream Rig (Intel)
(11 items)
 
CPUMotherboardGraphicsRAM
i7-2600 Gigabyte H77N-wifi Radeon HD 7750 16GB Corsair DDR3 1600 CL 10 (@1333 CL 8) 
Hard DriveHard DriveOSPower
Corsair Force 3 180gb Seagate Barracuda STBD2000101 2x in RAID1 Lubuntu / Win 8.1 / CentOS 6.4 -- Xen 4.3 FSP 80+ Micro-ATX 450w 
Case
Fractal Node 304 
CPUMotherboardGraphicsGraphics
AMD FX-8350 ASRock Fatal1ty 990FX Professional Sapphire Radeon HD 7970 GHz Edition 3GB AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Trident X Series 32GB (4 x 8GB) DDR3-1866 Seagate Barracuda 1TB 3.5" 7200RPM x2 RAID 1 Corsair Force Series GT 120GB x2 RAID 0 NZXT Kraken X60 
PowerCaseOther
SeaSonic Platinum 860W 80 PLUS Platinum Lian-Li PC-100 (Black) ATX Mid Tower Case RaspberryPi 
CPUMotherboardGraphicsGraphics
i7-3930k ASrock X79 EXTREME4-M SAPPHIRE Radeon HD 7870 GHz Edition 2GB  AMD FirePro W5000 
RAMHard DriveHard DriveCooling
G.Skill Ripjaws Z Series 32GB (4 x 8GB) DDR3-1866 2x Corsair Force Series 3 180GB RAID 0 2x Western Digital Red 2TB RAID 1 Noctua NH-D14 SE2011 
PowerCaseOther
SeaSonic 660W 80 PLUS Platinum Silverstone TJ08B-E Integrated RaspberryPi 
  hide details  
Reply
post #406 of 820
II installed xen, ubuntu base, there is now a bootloader option on grub should I need it?
also what viewing / management tool should I use?
post #407 of 820
Quote:
Originally Posted by stolid View Post

Has anyone tried this with Debian? I run Wheezy, and I'm considering trying this with a 5770 soon.
I tried this on stable and testing and it failed horribly.
Linux Mint 14 was a breeze, as was Fedora 17.
Quote:
Originally Posted by phill1978 View Post

II installed xen, ubuntu base, there is now a bootloader option on grub should I need it?
also what viewing / management tool should I use?

You should be picking that xen grub entry on startup. I use virt-manager for management, as does the guide dizzy posted.
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #408 of 820
Quote:
Originally Posted by dizzy4 View Post

Quote:
Originally Posted by stolid View Post

Has anyone tried this with Debian? I run Wheezy, and I'm considering trying this with a 5770 soon.

Many people have gotten it working with Linux Mint (Debian/Ubuntu base). You should be able to get this working pretty easily -- you might want to look into development versions since Debian is pretty far behind on Xen releases.

Quote:
Originally Posted by nyxcharon View Post

Quote:
Originally Posted by stolid View Post

Has anyone tried this with Debian? I run Wheezy, and I'm considering trying this with a 5770 soon.
I tried this on stable and testing and it failed horribly.
Linux Mint 14 was a breeze, as was Fedora 17.
Quote:
Originally Posted by phill1978 View Post

II installed xen, ubuntu base, there is now a bootloader option on grub should I need it?
also what viewing / management tool should I use?

You should be picking that xen grub entry on startup. I use virt-manager for management, as does the guide dizzy posted.

you might have to grab xen from sid.
post #409 of 820
Guess I'll give that a go when I get the chance then. The closer I am to pure debian the happier I am tongue.gif

http://packages.debian.org/search?keywords=xen&searchon=names&suite=all&section=all
Stable is 4.0
Testing is 4.1
Experimental is 4.2
Edited by nyxcharon - 12/31/12 at 11:59am
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #410 of 820
Quote:
Originally Posted by dizzy4 View Post

I did get a live-usb to work. I copied the centos 6.3 livecd to a usb stick using liveusb-creator and created an overlay. Then I just installed the proper packages for xen (including xen). The trick to getting it working was really just dumb luck. I had created the liveusb on a drive that contained a few files (about 150mb) and found that the files were still there after the distro was loaded. This was perfect, because I could delete those files and fill the free space with the kernel, xen.gz and initramfs -- this portion is not part of the persistent overlay. I had to add mboot.c32 and edit my syslinux.cfg. You use mboot.c32 as the kernel and append xen.gz, pvops kernel and initramfs.
I found documentation somewhere, but my tablet died and I can't find it now. I hope this points you in the right direction.

Thanks dizzy4. I got as far as adding mboot.c32 and edited the syslinux.cfg. Just for reference, could you share your syslinux.cfg?

My issue was that I wasn't able to run update-grub successfully after installing the Xen hypervisor, so grub as well as initramfs wasn't updated. I also didn't manage to edit the initramfs manually.

I found some comments on the Linux Mint forum that I need to try.

What do you mean by "created an overlay"?

I understand from you that dom0 runs a pvops kernel, not the standard kernel?

xen.gz is your hypervisor?
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine