LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-28-2020, 02:26 PM   #1
shuv1t
Member
 
Registered: May 2020
Distribution: Manjaro
Posts: 34

Rep: Reputation: 1
QEMU x86_64 booting local win10 drive "sda" with snapshot - stuck on booting. Debian 10.4


I don't know how to troubleshoot this and it doesn't seem like this is something very many do so I wasn't able to find any guides on it anywhere. The virtual machine stops with blinking marker on Booting from Hard Disk...

I don't expect you to have an answer for what's wrong here but I'm kind of lost as to where to even start. Is there a boot log somewhere I can check for errors or simply where it hangs?

Last edited by shuv1t; 05-28-2020 at 02:27 PM.
 
Old 05-28-2020, 02:49 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Did it ever work as expected?
 
Old 05-28-2020, 03:08 PM   #3
shuv1t
Member
 
Registered: May 2020
Distribution: Manjaro
Posts: 34

Original Poster
Rep: Reputation: 1
No, first time I'm running it. Tried through terminal and virtual machine manager. Realized I probably shouldn't run it through manager without setting sda to read only, but as far as I understand snapshot should be an okay alternative to it.
 
Old 05-29-2020, 02:32 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Not sure any VM supports officially booting from physical devices. Plenty of web how-to's on it though.

/dev/sda1 is a partition and may not include loader.

Secondly Windows has a HAL. A VM won't equal the HAL that was there when installed.
 
Old 05-29-2020, 03:20 PM   #5
shuv1t
Member
 
Registered: May 2020
Distribution: Manjaro
Posts: 34

Original Poster
Rep: Reputation: 1
I specified "sda" instead of "sda1" because that's what I was recommended to do. From https://www.qemu.org/docs/master/system/images.html :
Quote:
Hard disks can be used. Normally you must specify the whole disk (/dev/hdb instead of /dev/hdb1) so that the guest OS can see it as a partitioned disk. WARNING: unless you know what you do, it is better to only make READ-ONLY accesses to the hard disk otherwise you may corrupt your host data (use the -snapshot command line option or modify the device permissions accordingly).
Again I'm not expecting you to troubleshoot this for me, I just thought I'd ask here for ways to troubleshoot. Also from the same page:
Quote:
In order to use VM snapshots, you must have at least one non removable and writable block device using the qcow2 disk image format. Normally this device is the first virtual hard drive.
I'm not entirely sure what this means, however it tells me that VM snapshots are snapshots of the complete virtual machine including CPU state, RAM, device state and the content of all the writable disks. I believe this means the partition where the snapshot saves to must have enough space to room all the content of the physical hard drive I'm trying to boot from. Does this seem right?
 
Old 05-29-2020, 05:03 PM   #6
shuv1t
Member
 
Registered: May 2020
Distribution: Manjaro
Posts: 34

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
Secondly Windows has a HAL. A VM won't equal the HAL that was there when installed.
You're right; this is probably a waste of time.
 
Old 06-08-2020, 02:46 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Get a W10 iso from MS and make a new clean vm client from it. It will work for a while.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] snapshot what is a good snapshot app or whatever it takes BW-userx Linux - Hardware 2 06-18-2019 05:54 PM
How to take a Snapshot of a KVM at Location A and Restore that Snapshot at Location B LinuxRSA Linux - Virtualization and Cloud 4 06-22-2016 11:59 AM
[SOLVED] sda drive to sdb, so new hdd can become sda? irgunII Slackware 5 03-07-2014 08:38 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
mount USB devices, sda, manually/statically assign sda? Oxyacetylene Debian 3 12-20-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration