Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Microsoft Hyper-v 2012 R2 Dynamic Memory with gentoo Guest
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Wed Mar 26, 2014 2:48 pm    Post subject: Microsoft Hyper-v 2012 R2 Dynamic Memory with gentoo Guest Reply with quote

Hi everybody,
is it possible the use the Microsoft Hyper-V 2012 R2 Dynamic Memory allocation with gentoo guests. I tried but got a lot of error and no memory scaling.

Greetings,

Martin
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Tue Jun 17, 2014 10:17 am    Post subject: Reply with quote

I think I got it.
you need to add a udev rule to /etc/udev/rules.d/
it is working, but there are some errors in the log.

Code:
/etc/udev/rules.d/40-hyperv-hotadd.rules


Code:
# On Hyper-V Virtual Machines we want to add memory and cpus as soon as they appear
ATTR{[dmi/id]sys_vendor}!="Microsoft Corporation", GOTO="hyperv_hotadd_end"
ATTR{[dmi/id]product_name}!="Virtual Machine", GOTO="hyperv_hotadd_end"

# Memory hotadd request
SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}="online"

# CPU hotadd request
SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}="1"

LABEL="hyperv_hotadd_end"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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