Disk Passed Through to KVM Errors When Starting the KVM

Discussion in 'Proxmox VE: Installation and configuration' started by JustaGuy, Feb 5, 2016.

  1. JustaGuy

    JustaGuy Member

    Joined:
    Jan 1, 2010
    Messages:
    323
    Likes Received:
    1
    Hi,
    When I start my fileserver KVM VM from the console I see the following error:

    Code:
    WARNING: Image format was not specified for '/dev/disk/by-id/ata-HGST_HTS721010A9E630_JG40006PG0EVED' and probing guessed raw. 
     Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. 
     Specify the 'raw' format explicitly to remove the restrictions.
    But when I start it from the WebUI I don't.

    What's it all about, & do I really need to change anything to be safe?

    Thanks,

    -J
     
  2. JonathanB19

    JonathanB19 Member
    Proxmox Subscriber

    Joined:
    Dec 15, 2015
    Messages:
    34
    Likes Received:
    1
    Can you post the contents of the config file for the VM? It should be in /etc/pve/nodes/proxmox/qemu-server/
     
  3. JustaGuy

    JustaGuy Member

    Joined:
    Jan 1, 2010
    Messages:
    323
    Likes Received:
    1
    Code:
    virtio2: /dev/disk/by-id/ata-ST31000528AS_9VP8GN6C,cache=writeback,serial=5383-8732-2765624887,backup=no,size=976762584K
    virtio3: /dev/disk/by-id/ata-HGST_HTS721010A9E630_JG40006PG0EVED,cache=writeback,serial=6428-4103-5705898346,backup=no,size=976762584K
     
  4. wbumiller

    wbumiller Proxmox Staff Member
    Staff Member

    Joined:
    Jun 23, 2015
    Messages:
    642
    Likes Received:
    80
    Try adding the `,format=raw` property to those drives. Since you pass raw devices 'raw' is the correct format after all.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. JustaGuy

    JustaGuy Member

    Joined:
    Jan 1, 2010
    Messages:
    323
    Likes Received:
    1
    Ok, did that. Will see what happens after I reboot. I don't reboot all that often, so it might be awhile, but eventually. Thanks.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice