Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello is there a way to disable installing virtio drivers when converting #55

Closed
gongzuokuangwang opened this issue May 12, 2024 · 4 comments

Comments

@gongzuokuangwang
Copy link

gongzuokuangwang commented May 12, 2024

Hello, I am just starting to use virt-v2v.

I was trying to convert a windows ova file to libvirt.
In the process, virt-v2v was trying to install some drivers.
I kind of wish for a "vanilla" conversion, without any kind of modification of the guest.
Is it possible to disable the virtio?
I read the man page, however, I did not find any clue. Any ideas? Thanks in advance

@rwmjones
Copy link
Member

You can simply not attach the virtio-win ISO (or make sure virtio-win is not installed), and it will do the conversion without installing virtio drivers. You will see a warning:

warning: there are no virtio drivers available for this version of Windows [...]

If you are using virt-v2v directly this is easy. Not sure about if you're using MTV or another higher-level wrapper.

This is a bit of an unusual request as without virtio, Windows guests will run very slowly.

@gongzuokuangwang
Copy link
Author

gongzuokuangwang commented May 19, 2024

Thank you very much for the reply.

You can simply not attach the virtio-win ISO or make sure virtio-win is not installed

Is there a command line option for this? I didn't find it in the man page.

I believe it would be better to have a command line option than modifying the package management system. Again, thanks!

@rwmjones
Copy link
Member

There's no specific option but you might try playing with the VIRTIO_WIN environment variable to see if you can make it do what you want:

https://github.com/libguestfs/libguestfs-common/blob/830cbdcf4321f289ccfea9ac1e69198678da0a8d/mlcustomize/inject_virtio_win.ml#L77-L84

@gongzuokuangwang
Copy link
Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants