Assign KVM VM a complete disk

  • Thread starter Thread starter svanleent
  • Start date Start date
S

svanleent

Guest
I've been using Proxmox for a few days, and it appears very good. Finally something that is a good competitor to VMWare.

Anyways, I've got a disk on /dev/sdb with one big partition (/dev/sdb1), formatted as ext3. What I like, is to assign the disk to VM 101 (a debian guest).

How can I do this in the 101.conf?
 
I managed to set it in the 101.conf file as:

ide3 /dev/sdb;media=disk

Perhaps it would be good to have some kind of manual written about these things. The web-frontend still doesn't support all the variety of actual options. Anyways, thanks.
 
the correct systax is:

Code:
ide3: /dev/sdb,media=disk

There is already a manual page:

Code:
man qm

And we dont want such things on the web interface for now.

- Dietmar
 
That's what you get when you try to write things down out of your head.
 
About the man page, it is very comprehensive, but reading it from a screen of 80x25 lines is pretty hard to do. There is really the need of a new proper help utility that is able to function both graphically (from web/gui) as well as text based (no, I don't think gnu info is much better).

Which gives me an idea for development.
 
About the man page, it is very comprehensive, but reading it from a screen of 80x25 lines is pretty hard to do.

Unix manual pages are a well known standard, and you can transform them into many other formats if you want (pdf, html, ...)

- Dietmar
 
I know, so a webinterface through the VE webinterface to "man" whatever you want is what I consider a good idea. Anyways, I might invest some time in that.
 
I know, so a webinterface through the VE webinterface to "man" whatever you want is what I consider a good idea. Anyways, I might invest some time in that.

do you really think that help pages on the web interface for console commands makes sense? I think pages in the wiki are a good place for docu in the moment (the wiki is open for everyone, just register to create content).

the upcoming new storage model will be very flexible, and the command line should be only for experience users.
 
I'm aware that the frontend needs some enhancements first. I was just thinking about documentation of the different functions/elements. Ofcourse, adding man-support for every command-line function doesn't appear to be practical on a web-interface. A web-interface isn't the command-line.

What I try to think of is a reasonably standardized way of adding the documentation of the functionality of the web-interface (and perhaps command-line interface) in a streamlined fashion. I don't think you'll be able to chew up hundreds of pages of documentation within the next few months in a dozen different languages.

Anyway, this is the wrong thread for the discussion, if you'd like, I can think of a more proper post with a little more explanation of what I intended.
 
I'm aware that the frontend needs some enhancements first. I was just thinking about documentation of the different functions/elements. Ofcourse, adding man-support for every command-line function doesn't appear to be practical on a web-interface. A web-interface isn't the command-line.

What I try to think of is a reasonably standardized way of adding the documentation of the functionality of the web-interface (and perhaps command-line interface) in a streamlined fashion. I don't think you'll be able to chew up hundreds of pages of documentation within the next few months in a dozen different languages.

Anyway, this is the wrong thread for the discussion, if you'd like, I can think of a more proper post with a little more explanation of what I intended.

yes, pls share your ideas with us.
 
Documentation?

potenitally offtop noob question...

This thread has the info I need (assigning a physical disk to a VM) .... however I'm a bit lost as to where the documentation is for these things.

machinename.conf.... eg. 101.conf ??

qm ?? and the other command line utils for more advance management ??


Could somebody give me a quick pointer to find docs explaining these things (both an overview of what I can do with config files and command lines, and some more detail/manual on each).

They are probably in some obvious place I have overlooked, so apologies in advance :-)


(Great project by the way... I appreciate your work).
 
potenitally offtop noob question...

This thread has the info I need (assigning a physical disk to a VM) .... however I'm a bit lost as to where the documentation is for these things.

machinename.conf.... eg. 101.conf ??

qm ?? and the other command line utils for more advance management ??


Could somebody give me a quick pointer to find docs explaining these things (both an overview of what I can do with config files and command lines, and some more detail/manual on each).

They are probably in some obvious place I have overlooked, so apologies in advance :-)


(Great project by the way... I appreciate your work).

see this: https://www.proxmox.com/forum/showthread.php?p=6003#poststop

all commands have man pages. e.g. just type:

Code:
man qm
Location of configuration files:
See http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE
 
the correct systax is:

Code:
ide3: /dev/sdb,media=disk
There is already a manual page:

Code:
man qm
And we dont want such things on the web interface for now.

"Show advanced options" switch somewhere in the interface would make both worlds happy: it would still hide anything potentially dangerous, but would make more experienced sysadmins happy.
 
"Show advanced options" switch somewhere in the interface would make both worlds happy: it would still hide anything potentially dangerous, but would make more experienced sysadmins happy.

You know, we are now working on a flexible storage model. When that is finished we can think of adding more options to the web interface.
 
I've added my vote for documentation of qm, by editing the FAQ to add what I think might be a common usage, adding a physical disk to a VM. You might also list qm suspend and qm resume.

If these tools aren't recommended for common usage, and likely to change in a future release, perhaps they should be listed on an "unsupported tools" page. It's not a big deal, since anyone with moderate command-line knowledge can use locate, find, ls, ps aux|grep kvm, lsof, grep -r kvm /etc, etc. as I did to figure out what was going on.
 
Last edited:
I've added my vote for documentation of qm, by editing the FAQ to add what I think might be a common usage, adding a physical disk to a VM. You might also list qm suspend and qm resume.

There is a manual page for qm:

Code:
man qm

feel free to extend that content and send me a patch.

- Dietmar
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!