Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KVM mit encrypted qcow2 Image von Kommandozeile starten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
alexander_ro
Guru
Guru


Joined: 22 Nov 2014
Posts: 427

PostPosted: Fri Jan 23, 2015 7:33 pm    Post subject: KVM mit encrypted qcow2 Image von Kommandozeile starten Reply with quote

Hi Mädels ... Jungs ...

ich wollte mal die AES Verschlüsselung die es für ein qcow2 Qemu Image gibt ausprobieren. Wenn ich das auf meinem Notebook mache mit grafischer Oberfläche geht das mit strg+alt+ 2 oder 1 zum Umschalten zwischen dem Qemu-Monitor und dem Gentoo Gast System.

So habe ich das mal versucht:
Code:

kvm -m 1024M -monitor stdio -nographic -daemonize Gentoo.encrypted.img
chardev: opening backend "stdio" failed
qemu: could not open serial device 'stdio': Invalid argument


Kennt vielleicht jemand eine Lösung für das Problem?

Grüße
Alexander
Back to top
View user's profile Send private message
alexander_ro
Guru
Guru


Joined: 22 Nov 2014
Posts: 427

PostPosted: Mon Jan 26, 2015 10:25 am    Post subject: Reply with quote

Nach langer suche ... so gehts:

Code:

1. Konsole
kvm -m 1024M -daemonize Gentoo.encrypted.img -qmp tcp:localhost:4444,server --monitor stdio

2. Konsole
telnet localhost 4444

(Jetzt Meldet sich der QEMU-Monitor)

3. Folgende Befehle im JSON Format im QEMU-Monitor ausführen

{ "execute": "qmp_capabilities" } // Aktiviert die Befehlsausführung

{ "execute": "block_passwd", "arguments": { "device": "ide0-hd0", "password": "ganzGeheime-16-Stellen" } } // setzt das Passwort

{ "execute": "cont" } // boot Vorgang fortsetzen


Vielleicht interessiert es ja mal jemanden.
Ich muss das jetzt nur noch irgendwie automatisieren das man wenn man eine VM startet nur das Passwort eintippen muss und der Rest automatisch läuft.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum