|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
||||
QEMU on OpenBsd, mounting a vnd0 device
I am using QEMU for a VM on my OpenBsd 6.2 system , it works pretty good, but I have run into a problem mounting a vnd image after I make one.
To clarify: This works fine for my Freedos image: Code:
vnconfig vnd0 freedos.img mount /dev/vnd0i dos When I am done: Code:
umount /dev/vnd0i vnconfig -u vnd0 How ever I decided to create a windowsXP VM , and successfully did install a old windowsXP version I have, it works ok. I hate windows, and have no reason to need it, but one of my nephews needs it for some of his school work, he is also some what interested in OpenBsd, and more so when I suggested that if he installed OpenBsd, he could install QEMU, and have a windows VM to do his school work, so any way I am experimenting with it, and if I can get it working ok, including being able to create a VND device, and mount, similar to the way I do with my FreeDos image. And that is where I run into a problem, the windows image does not mount, after I create the VND device. Code:
# vnconfig vnd0 windowsXP.img # disklabel vnd0 # /dev/rvnd0c: type: vnd disk: vnd device label: fictitious duid: b8599b80caf8c77f flags: bytes/sector: 512 sectors/track: 100 tracks/cylinder: 1 sectors/cylinder: 100 cylinders: 14534 total sectors: 1453440 boundstart: 0 boundend: 1453440 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 1453440 0 unused Code:
# mount /dev/vnd0c mnt mount_ffs: /dev/vnd0c on /home/garry/Images/ISO-images/windows/mnt: Invalid argument # mount /dev/vnd0c: mnt mount_nfs: can't resolve address for host /dev/vnd0c # I do not remember where I found the instructions on mounting the dos vnd, but in any event in all my searches I could not find anything for a windows image, How can I mount the image , so it is read,writable , from my host system (OpneBsd) ? If any one knows, thanks, in any event thank you for reading. P.S, I am also reading "man mount", right now, maybe I will find something, but if any one has a quick /easy example I can try that would be nice.
__________________
My best friends are parrots |
|
||||
Thanks, you hit the nail on the head here, I did not think to include that in my details, but
Code:
qemu-img create -f qcow2 windowsXP.img 15G Quote:
I could also try making a new image, and start over. Looking at the manual, but am having trouble understanding how I would implement the "convert" option. Thanks ==== edited==== I think I got it, it does mount now, thanks a bunch. Now to see if it still boots in the VM as well. ==== edited again ==== YES, it boots fine, and it works well, I was able to copy images, and music from the OpenBsd host, to the windows guest, etc,... I think my nephew will like this. His Windows 7 laptop crashed and burned, on him, apparently viruses were involved, so any way , I suggested he might be interested in OpenBsd, instead of windows, especially if he wants to use internet, but then he mentioned that they require him to use some of the windows office and word programs in school, I think the VM will be sufficient for his needs. ====== edited again======= on the convert option , it turned out to be quite simple: the actual command I used: Code:
qemu-img convert windows-xp.img windowsXP.img qcow2 format, windowsXP.img is the name of the new converted image. (the original image was not lost or changed)
__________________
My best friends are parrots Last edited by PapaParrot; 27th March 2018 at 07:21 PM. Reason: To show the qemu-image convert command I used |
|
|||
Hi GarryR,
this is of great interest to me. Since I started using OpenBSD in September 2017, I have been able to find replacement for most tools except Microsoft Office and AutoCAD R14. Could you comment on the performance of the Office (mainly Word and Exel) under QEMU? Do you think that Windows 7 would also work? Kindest regards, M |
|
||||
Sorry, I have not yet tried it with Windows 7, but I am sure it would work.
Like wise , I can't comment on the performance of Microsoft Office and AutoCAD R14. I have never really used any MS software, nor windows , nor needed to, I think a lot would depend on your hardware, cpu capabilities, etc. See: Code:
man vmm Quote:
I don't have a windows 7 install CD/DVD, to start with, and then the software/programs, are expensive, but if you have them, you could just try it. There may be someone else here that can tell you more. When I was trying to do the XP , I did some searches, found 1 tutorial , and it mentioned windows 7, so I am sure it would work. This is what I read: https://cromwell-intl.com/open-sourc...ows-howto.html Sorry I couldn't be of more help
__________________
My best friends are parrots |
|
|||
Hi jggimi,
that is true, hence my interest in QEMU. However, on a different forum someone suggested that the VM could be treated as a remote system and accessed by RDP-like application. Would this be a viable idea? I am asking because the vmm is actively developed, and given the quality of OpenBSD code, it would be great to have a native application. Please note that I just started learning about VM's, so likely I do not know what I am talking about. Kindest regards, M |
|
|||
Hi GarryR,
first, thank you for the reply. Since you mentioned that you had installed QEMU with WindowsXP for your nephew I assumed, that you had set up the whole environment for him. My stupidity. If he does add Microsoft Office, could you please ask him? Thank you also for the link to the tutorial. So contrary to your assertion, your answer was helpful because it showed that QEMU installation is not as difficult as I had read and Windows works under it. Kindest regards, M |
|
||||
Quote:
the next one was for Debian 7, also not real complicated, but for windowsXP, it got a little more complicated, for example, when I used the raw format, like I had done with both Free Dos, and linux, the windowsXP installer, did not like that, and could not install, so when I read the tutorial, it mentioned to use "qcow2", and it installed ok,... however as you can see, in this thread, I was not able to mount the image, as a "VND" device, or a vnode, ... the solution turned out pretty simple, I was able to convert it, like jggimi suggested,... Being able to mount the image as a vnd device it important, so that one can access, add files, or even programs, etc,.... If you start to try, and have problems, then post the details, I am sure some one will know how to proceed,... I am just starting to learn about this, one thing I have not figured out is how to set it up so that it has more memory (cpu), and to run the programs you want you will need a lot more the just the 500 or 600 mb , I use. My computer would not be able to handle windows 7 on a VM, with Microsoft Office and AutoCAD R14. on it. When I bought it (the computer) it did have windows 7, but just barely could run it, it was really slow, with OpenBsd it is very efficient,... but of course any VM is still going to be limited to what the hosts capacity is,..quote again Quote:
That is to say, my PC has 2gb ram , max. Obviously if I set up a VM, that has programs that use more then that, it either would not work, or be very slow, poor performance. Debian 9, Windows 7, Gnome, and all the inefficient memory Ram hogs, do not perform well on this PC, and would be even worse on a VM,... sorry to go off topic, but that leads to a big reason I choose OpenBsd, after Debian and Linux started going down hill. OpenBsd is very efficient and runs/performs well on it.
__________________
My best friends are parrots |
|
|||
Hi GarryR,
Quote:
Quote:
Kindest regards, M |
|
|||
Hi jggimi,
I see, back to Qemu. Kindest regards, M |
|
||||
Ok, well, in spite of that , some graphics seem to work, but with QEMU, I have not tried the the "vmm", all though I have sort of read the manual,...
============================ =========================== ====== Using QEMU it seems to work, I suppose "improbable" is not the same as impossible, and I don't know if it would be at all useful or practical, probably just using the "dual boot", will be easier, and more practical,... it is interesting to me though, sort of a "tinker toy" thing.
__________________
My best friends are parrots Last edited by PapaParrot; 21st April 2018 at 06:20 PM. |
|
||||
For clarity, Garry, we were discussing Windows guests of vmm(4).
|
|
||||
Ok, thanks, I get confused easily But I am glad you brought that up, when I first installed qemu, I was not aware of "vmm", and still do not know much of anything about it, so any way, based on what you say , it would
not be a viable option if one wants a a VM with windows as the guest, ....thanks
__________________
My best friends are parrots |
|
||||
Qemu is a computer emulator. On the other hand, vmm(4) uses virtualization hardware on the host to provide high-performance guest virtual machines. This latter facility is classically termed a hypervisor. While both facilities provide guest virtual machines, they operate quite differently.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OpenBSD under QEMU/KVM | bsd007 | OpenBSD Packages and Ports | 4 | 26th October 2017 11:37 AM |
HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 6 | 20th May 2017 12:03 PM |
QEMU 1.4.0 boosts large storage device performance | J65nko | News | 0 | 18th February 2013 04:03 PM |
QEMU 1.3 supports new device pass-through technology | J65nko | News | 0 | 4th December 2012 11:07 PM |
OpenBSD qemu usb passthrough | kolaloka | OpenBSD Packages and Ports | 9 | 9th October 2011 12:15 AM |