Hey ryecoaaron,
Just wanted to say thank you for your help, support & maintenance with this plugin, i know we must annoy you sometimes asking these many question but from me personally Thank you.
Hey ryecoaaron,
Just wanted to say thank you for your help, support & maintenance with this plugin, i know we must annoy you sometimes asking these many question but from me personally Thank you.
you need any further information.
I just created a container with same setup as yours and it worked fine. Can you run the following as root:
sudo su - # or login as root
then this all on one line:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
Hi ryecoaaron,
thanks for your help. I really appreciate it. Here is the result:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
awk: not an option: -i
The option "-i" doesn't exist.
awk
Usage: mawk [Options] [Program] [file ...]
Program:
The -f option value is the name of a file containing program text.
If no -f option is given, a "--" ends option processing; the following
parameters are the program text.
Options:
-f program-file Program text is read from file instead of from the
command-line. Multiple -f options are accepted.
-F value sets the field separator, FS, to value.
-v var=value assigns value to program variable var.
-- unambiguous end of options.
Implementation-specific options are prefixed with "-W". They can be
abbreviated:
-W version show version information and exit.
-W dump show assembler-like listing of program and exit.
-W help show this message and exit.
-W interactive set unbuffered output, line-buffered input.
-W exec file use file as program as well as last option.
-W random=number set initial random seed.
-W sprintf=number adjust size of sprintf buffer.
-W posix_space do not consider "\n" a space.
-W usage show this message and exit.
Alles anzeigen
awk version and gawk installation:
> awk -W version
mawk 1.3.4 20200120
Copyright 2008-2019,2020, Thomas E. Dickey
Copyright 1991-1996,2014, Michael D. Brennan
random-funcs: srandom/random
regex-funcs: internal
compiled limits:
sprintf buffer 8192
maximum-integer 2147483647
> awk -i
awk: not an option: -i
> apt install gawk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libmpfr6 libsigsegv2
Suggested packages:
gawk-doc
The following NEW packages will be installed:
gawk libmpfr6 libsigsegv2
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 2652 kB of archives.
After this operation, 6071 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bullseye/main amd64 libmpfr6 amd64 4.1.0-3 [2012 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libsigsegv2 amd64 2.13-1 [34.8 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 gawk amd64 1:5.1.0-1 [605 kB]
Fetched 2652 kB in 0s (21.5 MB/s)
Selecting previously unselected package libmpfr6:amd64.
(Reading database ... 136822 files and directories currently installed.)
Preparing to unpack .../libmpfr6_4.1.0-3_amd64.deb ...
Unpacking libmpfr6:amd64 (4.1.0-3) ...
Selecting previously unselected package libsigsegv2:amd64.
Preparing to unpack .../libsigsegv2_2.13-1_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.13-1) ...
Setting up libmpfr6:amd64 (4.1.0-3) ...
Setting up libsigsegv2:amd64 (2.13-1) ...
Selecting previously unselected package gawk.
(Reading database ... 136842 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a5.1.0-1_amd64.deb ...
Unpacking gawk (1:5.1.0-1) ...
Setting up gawk (1:5.1.0-1) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
> LANG=C awk -W version
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)
Copyright (C) 1989, 1991-2020 Free Software Foundation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
> LANG=C awk -i
awk: option requires an argument -- i
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options: (standard)
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
Short options: GNU long options: (extensions)
-b --characters-as-bytes
-c --traditional
-C --copyright
-d[file] --dump-variables[=file]
-D[file] --debug[=file]
-e 'program-text' --source='program-text'
-E file --exec=file
-g --gen-pot
-h --help
-i includefile --include=includefile
-l library --load=library
-L[fatal|invalid|no-ext] --lint[=fatal|invalid|no-ext]
-M --bignum
-N --use-lc-numeric
-n --non-decimal-data
-o[file] --pretty-print[=file]
-O --optimize
-p[file] --profile[=file]
-P --posix
-r --re-interval
-s --no-optimize
-S --sandbox
-t --lint-old
-V --version
To report bugs, see node `Bugs' in `gawk.info'
which is section `Reporting Problems and Bugs' in the
printed version. This same information may be found at
https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
PLEASE do NOT try to report bugs by posting in comp.lang.awk,
or by using a web forum such as Stack Overflow.
gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.
Examples:
awk '{ sum += $1 }; END { print sum }' file
awk -F: '{ print $1 }' /etc/passwd
Alles anzeigen
Next try:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
awk: inplace:59: warning: inplace::begin: Cannot stat `/data/lxc/vbus//etc/shadow' (No such file or directory)
awk: inplace:59: fatal: cannot open file `/data/lxc/vbus//etc/shadow' for reading: No such file or directory
Now I did the following and the export command worked:
> mkdir /data/lxc/vbus
> mkdir /data/lxc/vbus/etc/
> touch /data/lxc/vbus/etc/shadow
> export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; awk -i inplace -F":" 'BEGIN{OFS = ":"} /root/{$2="$y$j9T$P4RwUIsVHEID3k9KZSs6J1$eHurABPnULY5g.BnxlWBAce1lKnUQJzE9HtX8QUuyN5"}{ print }' /data/lxc/vbus//etc/shadow
>
When I now try to create the lxc container via the omv web interface, I get the following message:
Any further idea?
Thanks and regards Hoppel
Why are you trying export -i? What is the output of: dpkg -l | grep awk
Why are you trying export -i? What is the output of: dpkg -l | grep awk
Yes, I was a bit quick with my post. I already recognized that it should be an awk option. I edited my last post and installed gawk. Please look at the result: RE: New openmediavault-kvm plugin
But here is the output:
I guess I thought gawk was installed on all Debian systems. I will add it to the plugin's dependencies.
awk not being installed was the problem. You can delete all of the folders you manually created to test the command (didn't need to do that).
Any further idea?
It is telling you the problem now. You created the etc directory in the directory you are trying to create a new lxc in. Either delete everything in that directory or pick a different directory. I don't think you will have issues anymore.
Yes, you are right! It was possible to create the container. This issue is solved now. Big thanks!
But... How is it possible to connect to that container?
I determined the ip address of that container on my router.
It is not possible to log into the container via SSH or to create/establish a console connection via the omv web interface.
How is it possible to connect to that container?
From the command line, you can: sudo virsh lxc:/// console LXC_CONTAINER_NAME
Or you can use virt-manager.
From the command line, you can: sudo virsh lxc:/// console LXC_CONTAINER_NAME
Or you can use virt-manager.
Ah, yes, thank you so much.
Regards Hoppel
I´m lost.
I created a bridge interface in OMV settings (br0). I then created a VM running Windows 10. Network config for this is bridge and the interface is br0. After setting up Windows 10 (100x times) there is no network interface available.
If someone is interested. After latest qemu update everything is working fine again.
If someone is interested. After latest qemu update everything is working fine again.
Seems like something just needed to be reset. I've run a WIn10 VM the entire time the kvm plugin has existed and never had any problems.
Was really strange. You could fine similar issues in the internet.
Anyway. Everything is fine and in addition to my Win 10 VM I now have got Home Assistant running
Thank you ryecoaaron for this amazing plugin
Seems like something just needed to be reset. I've run a WIn10 VM the entire time the kvm plugin has existed and never had any problems.
Have you been successful passthroughing the GPU to the Windows machine? I have had no luck getting it to work on any machines. I moved to just running a separate machine for windows with the hopes that in the future this will be a more convenient to use feature. Proxmox and Esxi are both able to passthrough the GPU but I have heard there are some requirements to have been met first. That being said they are both Hyper-Vs and after years of OMV and the initial useage as a NAS first and THEN dockers, VMs etc. I am not going to "migrate" to another system just to see if I can game on a Windows VM over the network. HOWEVER, I am not going to stop trying Currently installing OMV with a Radeon Pro WX3200 to see if this will work with the passthrough better. I was trying with a Radeon 7750 that ended in frustration after finding out the system it was installed it the PCI-E slot was only rated to power a 35W card :smh: there went a few days!
Have you been successful passthroughing the GPU to the Windows machine?
I don't use Windows but it shouldn't a guest OS issue nor a plugin issue. The plugin doesn't provide this functionality. If you use virt-manager, it is just as supported as proxmox (since they both use KVM). It might not be as easy and I haven't wanted to try to make this easier with the plugin. I have used passthru on esxi and proxmox many times. I guess people just keep saying it doesn't work but never mentions anything they have tried.
Guess I found a bug in the kvm-plugin: when trying to modify the number of vcpus, an error message is shown:
ZitatAlles anzeigenFailed to set maximum.
error: unknown command: 'etvcpus'
virsh
OMV\Exception: Failed to set maximum.
error: unknown command: 'etvcpus'
virsh in /usr/share/openmediavault/engined/rpc/kvm.inc:2851
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/kvm.inc(2322): OMVRpcServiceKvm->virshCommand('etvcpus smartho...', 'Failed to set m...')
#1 [internal function]: OMVRpcServiceKvm->doChangeCpuMemory(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doChangeCpuMemo...', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Kvm', 'doChangeCpuMemo...', Array, Array, 1)
#5 {main}
The reason is the command: it sends a "etvcpus" instead of "setvcpus". Typo?
on command line I can modify the vcpus with setvcpus.
The reason is the command: it sends a "etvcpus" instead of "setvcpus". Typo?
Yep. Fixed and I will release an update in a bit. https://github.com/OpenMediaVa…9128abf50766bdd3822f85a38
6.2.8 in the repo now.
I have a strange issue after I upgraded last night to the latest version my pools no longer auto start. After reboot I manualy have to start the pools for my vm's to work. Any ideas?
Oh I also have this issue but I just migrated my system from usb to the internal ssd and thought it was something I needed to investigate once everything else was fixed and then I forgot about it but my pools definitely not starting any more
I have a strange issue after I upgraded last night to the latest version my pools no longer auto start. After reboot I manualy have to start the pools for my vm's to work. Any ideas?
What did you upgrade? I haven't released any updates. What is the output of: ls -al /etc/libvirt/qemu/autostart/
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!