Re: virtual machine from USB stick (virt-manager & qemu/kvm)
On 07/01/2014 05:17 AM, Darac Marjal wrote:
> [Resending, as this doesn't seem to have made it to the list]
> On Wed, Jun 18, 2014 at 10:39:19AM +0300, Eugene Zhukov wrote:
>> I'm trying to create a VM with Windows 7. Is there a way to do that from USB stick? It is a ~10GB corporate Windows package.
If the USB stick is a disk image that can run as a self contained system (not an
install image) then copy the stick
to your hard disk with dd (dd if=/dev/sdx of=win7raw.img). Now in the "New VM"
wizard select "Import existing
disk image". In the last screen select "Customize configuration before
install". Then make sure the storage format is raw.
The system should boot from that drive now. Check the boot options to be sure
the correct drive is selected.
> I presume the USB stick is your install medium? That is, you're not
> trying to install TO the USB stick, but you're trying to install FROM
> the USB stick TO a virtual machine on your hard drive.
> In that case, when creating your VM in Virtual-Manager, add your target
> device as Disk 1, then also add a USB Host Device, selecting the USB
> stick as your device. Now, boot the virtual machine and install as if on
> a real machine (i.e. following the installer's manual).
>> P.S. Please CC me as I'm not subscribed to the list.
>> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact email@example.com
>> Archive: https://lists.debian.org/BE690F6A-DA67-4FB3-AEEF-BA63692476F9@gmail.com